﻿using Car;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 林宇辉
{
        public class Car : Garss
        {
            public string Name { get; set; }

            public string Color { get; set; }

            public int Tyre { get; set; }
        public string GarageName { get; private set; }
        public string GarageSite { get; private set; }
        public int GaragePhone { get; private set; }
        public static void Repair()
        {

            Console.WriteLine("交给修车厂");

        }

        public void Run()
            {
                if (Tyre >= 4)
                {
                    Console.WriteLine("车会跑");
                }
                else
                { 
                    Console.WriteLine("输入修车厂的名字");
                    GarageName = Console.ReadLine();

                    Console.WriteLine("输入修车厂的地址");
                    GarageSite = Console.ReadLine();

                    Console.WriteLine("输入修车厂的电话");
                    GaragePhone = int.Parse(Console.ReadLine());

                }
            }
        }
    }

